/**
 * 您的公司.com
 * Copyright (c) 2018-2018 All Rights Reserved.
 */
package com.mei.demo;

import java.util.concurrent.TimeUnit;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.mei.demo.service.RedisOperatorService;

/**
 * 
 *
 * @author mei.xiaoliang@qq.com
 */
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = StartApplication.class) // 指定spring-boot的启动类 
public class RedisStringJava {

    @Autowired
    private RedisOperatorService redisOperatorService;

    @Test
    public void test() {
        redisOperatorService.set("可乐", "肥皂", 20, TimeUnit.SECONDS);
    }

}